import request from '@/utils/request';

// 查询客群标签
export function queryPortraitGroupLabel(data) {
    return request({
        url: '/admin/portraitgroup/queryPortraitGroupLabel',
        method: 'post',
        data,
    })
}



// 查询客群标签
export function queryPortraitGroupRisk(data) {
    return request({
        url: '/admin/portraitgroup/queryPortraitGroupRisk',
        method: 'post',
        data,
    })
}



// 查询客户数量
export function queryPortraitGroupCount(data) {
    return request({
        url: '/admin/portraitgroup/queryPortraitGroupCount',
        method: 'post',
        data,
    })
}

// 查询客户数量
export function queryPortraitGroupCountSelf(data) {
    return request({
        url: '/admin/customer/segmentation/queryPortraitGroupCount',
        method: 'post',
        data,
    })
}


// 查询客户数量
export function queryPortraitGroupActive(data) {
    return request({
        url: '/admin/portraitgroup/queryPortraitGroupActive',
        method: 'post',
        data,
    })
}

// 查询客户数量
export function queryPortraitGroupActiveSelf(data) {
    return request({
        url: '/admin/customer/segmentation/queryPortraitGroupActive',
        method: 'post',
        data,
    })
}



// 查询客群分布
export function queryPortraitGroupSex(data) {
    return request({
        url: '/admin/portraitgroup/queryPortraitGroupSex',
        method: 'post',
        data,
    })
}

// 客群详情查询
export function queCustomerSegDetail(data) {
    return request({
        url: '/admin/customer/segmentation/queCustomerSegDetail',
        method: 'post',
        data,
    })
}

// 客群画像查询
export function segmentation(data) {
    return request({
        url: '/admin/customer/segmentation/queCustomerSegInfo',
        method: 'post',
        data,
    })
}

// 客户路径
export function trackList(params) {
    return request({
        url: '/admin/scrm/track/list',
        method: 'get',
        params,
    })
}

// app 下拉
export function appList(params) {
    return request({
        url: '/admin/scrm/track/appList',
        method: 'get',
        params,
    })
}

